using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmMpJobSiteType")]
    public class MpJobSiteType
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "JobSiteTypeId", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public int JobSiteTypeId { get; set; }

		[DataMember, Display(Name = "JobSiteTypeName", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public string JobSiteTypeName { get; set; }
        //[InverseProperty("job_site_type_seq")]
       // [ForeignKey("current_hrm_mp_job_sites")]

		[ForeignKey("CurrJobSite")]
		[DataMember, Display(Name = "CurrJobSiteId", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public Nullable<int> CurrJobSiteId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        //[ForeignKey("curr_job_site_seq")]

		[DataMember, Display(Name = "HrmMpJobSites", ResourceType = typeof(Resources.MpJobSiteTypesResource))]
        public virtual HRM.JobSite current_HrmMpJobSites { get; set; }


		[DataMember ]
        public virtual ICollection<JobSite> col_hrm_mp_job_sites { get; set; }

		public virtual HRM.JobSite CurrJobSite { get; set; }

    }
}